﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Engine.Sgml.Test.Util {
    class SgmlDocumentConfiguration {
        private Random random;

        public SgmlDocumentConfiguration() {
            random = new Random();
            MaxDepth = 3;
            }

        public int MaxDepth { get; set; }

        public bool RepeatGroupItem {
            get {
                switch (random.Next(0, 2)) {
                    case 0:
                        return true;
                    case 1:
                        return false;
                    default:
                        throw new InvalidOperationException();
                    }
                }
            }

        public bool DiffuseRepetitiveElements {
            get {
                switch (random.Next(0, 2)) {
                    case 0:
                        return true;
                    case 1:
                        return false;
                    default:
                        throw new InvalidOperationException();
                    }
                }
            }

        public bool AddIncluisonElement {
            get {
                switch (random.Next(0, 2)) {
                    case 0:
                        return true;
                    case 1:
                        return false;
                    default:
                        throw new InvalidOperationException();
                    }
                }
            }

        public bool GenerateComments { get; set; }


        public bool DiffuseAfterElement {
            get {
                switch (random.Next(0, 2)) {
                    case 0:
                        return true;
                    case 1:
                        return false;
                    default:
                        throw new InvalidOperationException();
                    }
                }
            }
        }
    }
